from hytest import *
from lib.web import *

def suite_setup():
    p.openBrower()

class UI_0101:

    name =  '检查操作菜单 UI_0101'

    def teststeps(self):
        p.openOneKeyPlanWeb()

class UI_0102:

    name =  '检查操作菜单 UI_0102'

    def teststeps(self):
        p.wd.find_element_by_xpath('//*[@id="root"]/div/div[2]/div/ul/li[2]/a').click()
        sleep(5)


class UI_0103:

    name =  '检查操作菜单 UI_0103'

    def teststeps(self):
        p.wd.get('http://******************/oneKeyPlan/metro/history')
        p.wd.find_element_by_xpath('//*[@id="planName"]').send_keys('aaaa')
        p.wd.find_element_by_xpath('//*[@id="root"]/div/div[2]/div/div/div/div/div[2]/div/div[1]/form/div/div[5]/div/div[2]/div/div/div/div[1]/div/div[2]/button').click()






